import { axios } from '@/utils/request'

export function List(params) {
  return axios({
    url: '/activity-new-user/list',
    method: 'get',
    params,
  })
}

export function Info(params) {
  return axios({
    url: '/activity-new-user/get-info',
    method: 'get',
    params,
  })
}

export function Save(data) {
  return axios({
    url: '/activity-new-user/save',
    method: 'post',
    data,
  })
}

export function Status(data) {
  return axios({
    url: '/activity-new-user/set-status',
    method: 'post',
    data,
  })
}

export function getCoupons(params) {
  return axios({
    url: '/activity-new-user/get-coupons',
    method: 'get',
    params,
  })
}

export function pushGoods() {
  return axios({
    url: '/activity-new-user/push-goods',
    method: 'get',
  })
}

export function pushGoodsSave(data) {
  return axios({
    url: '/activity-new-user/push-goods-save',
    method: 'post',
    data,
  })
}

export function conf() {
  return axios({
    url: '/activity-new-user/conf',
    method: 'get',
  })
}

export function confSave(data) {
  return axios({
    url: '/activity-new-user/conf-save',
    method: 'post',
    data,
  })
}

// id
// card_id //修改时传
export function cardTemplateCreate(data) {
  return axios({
    url: '/alipay/alipay-app/card-template-create',
    method: 'post',
    data,
  })
}

export function cardTemplateInfo(id) {
  return axios({
    url: '/alipay/alipay-app/card-template-info',
    method: 'post',
    params: {
      id,
    },
  })
}

export function cardList(params) {
  return axios({
    url: '/alipay/alipay-app/card-list',
    method: 'post',
    params,
  })
}

export function cardDel(params) {
  return axios({
    url: '/alipay/alipay-app/card-del',
    method: 'post',
    params,
  })
}
